home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
NOVA - For the NeXT Workstation
/
NOVA - For the NeXT Workstation.iso
/
Documents
/
NeXTAnswers
/
misc.367
< prev
next >
Wrap
Text File
|
1992-02-06
|
590b
|
23 lines
indent decrement negative assignment
Q: Is there a bug in indent?
A: Yes. The old C specification permitted =- as a decrement operator; the current
specification does not, and specifies that -= is the decrement operator. It appears
that indent(1) was written during the "transition" period; it (silently!) converts
=- to -=. Note that this will only occur if there's no white space between the = and
the -.
Example:
ok = -1; /* This won't get messed up */
bad=-1; /* This WILL get messed up; indent will convert to bad -= 1; */
QA367
Valid for 1.0
Not checked yet for 2.0